package prectise4;

class Draw{
    private int hight=3;
    public void gethight(int hight){
        this.hight= hight;
    }
    public void draw3jiao(){
        for (int i = 1; i <= hight; i++) {
            for (int j = 1; j <=i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
    public void drawjvxing(){
        for(int i = 1; i <= hight; i++){
            System.out.println("*************");
        }
    }
    public void drawzheng(){
        for (int i = 1; i <= hight; i++) {
            for (int j = 1; j <=hight; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
    public void drawsibian(){
        for (int i = 1; i <= hight; i++) {
            for (int j = 1; j <=i; j++) {
                System.out.print(" ");
            }
            System.out.println("******");
        }
    }
}

public class DrawOperator {
    public static void main(String[] args){
        Draw paint = new Draw();
        paint.gethight(5);
        paint.draw3jiao();
        System.out.println();
        paint.drawjvxing();
        System.out.println();
        paint.drawzheng();
        System.out.println();
        paint.drawsibian();

    }
}
